package models.msgs;

public class Card {
	
	
        final String rank;
        final String color;
        final int V;
	    
	    public String getRank() {
			return rank;
		}
	    
	    public String getColor() {
			return color;
		}

		public Card(String rank, String color) {
	        this.rank = rank;
	        this.color = color;
	        V = Integer.parseInt(rank);


	    }

	    public static String Figure(int V){

		if(V>=2 && V<10)

			return Integer.toString(V);
		else if(V==1)
			return "A";
		else if(V==10)
			return "T";
		else if(V==11)
			return "J";
		else if(V==12)
			return "Q";
		else 
			return "K";
	}




}






